﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LEDSendMsgGroup.aspx.cs" Inherits="HNQXYJ.GPRS.LEDSendMsgGroup" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
     <link href="../CSS/public.css" rel="stylesheet" type="text/css" />
    <link href="../CSS/SimpleContent.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery-1.5.1.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
           
            //点击发送按钮 发送信息
            $("#send").click(function () {
                var msg = $("#sendMsg").val();
                var area = $("#selectArea").val();
                if (area == "0") {
                    alert("请选择发送目标区域！");
                    return;

                }
                if (msg == "" || msg.length < 3) {
                    alert("信息内容不能为空或字符太少！");
                    $("#sendMsg").focus();
                    return;
                }
                else {
                    alert("信息已发出！");
                }
            });

            //点击取消按钮 ，清空发送信息
            $("#reset").click(function () {
                $("#sendMsg").val("");
                $("#sendMsg").focus();
            });

        });
    
    </script>
</head>
<body>
    <form id="form1" runat="server">
   <table width="100%" border="0" cellspacing="0" cellpadding="0" height="610">
                    <tr>
                        <td class="rtbg">
                            <span> LED信息群发 &nbsp;》
                              </span>
                        </td>
                    </tr>
                    <tr>
                        <td  class="rbg" valign="top" align="center"  style="padding-top:20px">
                            
                             <table class="dataList" cellpadding="0" cellspacing="0" width="97%">
                                    <caption>LED信息发送</caption>
                                      <tr>
                                        <td class="Graybgr" width="10%">请选择目标区：</td>
                                        <td class="Lightbluebg" width="90%">
                                          <select id="selectArea" >
                                           <option selected="selected"  value="0"> 请选择一个区&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option>
                                             <option value="1">所有目标区域</option>
                                             <option value="2">目标区域1</option>
                                             <option value="3">目标区域2</option>
                                             <option value="4">目标区域3</option>
                                             <option value="5">目标区域4</option>
                                           </select>
                                        </td>
                                      </tr>
                                      <tr>
                                        <td class="Graybgr">填写发送内容：</td>
                                        <td class="Lightbluebg" >
                                            <asp:TextBox ID="sendMsg" runat="server" TextMode="MultiLine" Width="80%" 
                                                Height="100px" MaxLength="250"></asp:TextBox>
                                        </td>
                                      </tr>
                                       <tr>
                                        <td class="Graybgr" width="10%">发送次数：</td>
                                        <td class="Lightbluebg" width="90%">
                                            <input id="sendTimes" type="text" value="3" style=" width:40px"  />次
                                        </td>
                                      </tr>
                                    
                                      <tfoot>
                                        <tr>
                                           <td colspan="2"  style=" text-align:left;"> &nbsp;&nbsp;&nbsp; <img id="reset" src="../images/qk.gif" />
                                         <img id="send" src="../images/send.jpg" />  </td>
                                        </tr>
                                      </tfoot>
                               </table>

                         </td>
                     </tr>
              </table>
    </form>
</body>
</html>
